/* DIABOX – nová horní část úvodní stránky */

body.in-index #diabox-home-top {
  margin: 26px 0 30px;
  color: #17212b;
  font-family: "Source Sans 3", sans-serif;
}

body.in-index #diabox-home-top *,
body.in-index #diabox-home-top *::before,
body.in-index #diabox-home-top *::after {
  box-sizing: border-box;
}

/* Na úvodní stránce nahrazují levé menu přehledné obrazové kategorie. */
@media (min-width: 992px) {
  body.in-index .content-wrapper-in {
    display: block;
  }

  body.in-index .sidebar.sidebar-left {
    display: none !important;
  }

  body.in-index #content.content,
  body.in-index #content.content.narrow {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* =========================
   Hlavní banner
   ========================= */
.diabox-home-hero {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  grid-template-rows: auto auto;
  border: 1px solid #d7e6f0;
  border-radius: 4px;
  background:
    radial-gradient(circle at 78% 18%, rgba(38, 166, 223, 0.16), transparent 29%),
    linear-gradient(115deg, #f7fbfe 0%, #eef7fc 60%, #e6f4fb 100%);
  box-shadow: 0 4px 18px rgba(0, 74, 122, 0.06);
}

.diabox-home-hero::before {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 390px;
  height: 390px;
  border: 62px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.diabox-home-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 720px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 29px 34px 27px 38px;
}

.diabox-home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #1076b7;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.diabox-home-hero__eyebrow::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #24a7df;
  box-shadow: 0 0 0 5px rgba(36, 167, 223, 0.12);
  content: "";
}

.diabox-home-hero__title {
  max-width: 690px;
  margin: 0 0 10px;
  color: #111820;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(29px, 2.35vw, 38px);
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.12;
}

.diabox-home-hero__text {
  max-width: 650px;
  margin: 0 0 16px;
  color: #50636f;
  font-size: 15px;
  line-height: 1.45;
}

.diabox-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.diabox-home-hero__button {
  display: inline-flex;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid #1076b7;
  color: #1076b7 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.diabox-home-hero__button--primary {
  background: #1076b7;
  color: #ffffff !important;
  box-shadow: 0 4px 11px rgba(16, 118, 183, 0.18);
}

.diabox-home-hero__button:hover,
.diabox-home-hero__button:focus {
  background: #0b639c;
  box-shadow: 0 5px 13px rgba(16, 118, 183, 0.22);
  color: #ffffff !important;
  outline: none;
  transform: translateY(-1px);
}

.diabox-home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 11px;
  color: #5f737e;
  font-size: 12px;
  line-height: 1.25;
}

.diabox-home-hero__delivery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.diabox-home-hero__delivery::before {
  color: #1076b7;
  content: "▣";
  font-size: 15px;
}

.diabox-home-hero__currencies {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.diabox-home-hero__currency {
  display: inline-flex;
  min-width: 39px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid #bcd7e7;
  background: rgba(255, 255, 255, 0.85);
  color: #1076b7 !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.diabox-home-hero__currency:hover,
.diabox-home-hero__currency:focus,
.diabox-home-hero__currency.is-active {
  border-color: #1076b7;
  background: #1076b7;
  color: #ffffff !important;
  outline: none;
}

.diabox-home-hero__socials {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-left: 11px;
  border-left: 1px solid #c9dce7;
}

.diabox-home-hero__social {
  color: #1076b7 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.diabox-home-hero__social:hover,
.diabox-home-hero__social:focus {
  color: #0b639c !important;
  text-decoration: underline !important;
  outline: none;
}

.diabox-home-hero__visual {
  position: relative;
  z-index: 1;
  min-height: 220px;
}

.diabox-home-hero__visual::after {
  position: absolute;
  right: 2%;
  bottom: -42%;
  width: 96%;
  height: 90%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  content: "";
  filter: blur(1px);
}

.diabox-home-hero__product {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(188, 215, 231, 0.92);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(0, 74, 122, 0.13);
}

.diabox-home-hero__product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.diabox-home-hero__product--sensor {
  top: 18px;
  right: 8%;
  width: 116px;
  height: 116px;
  padding: 8px;
  border-radius: 50%;
  transform: rotate(4deg);
}

.diabox-home-hero__product--belt {
  right: 18%;
  bottom: 16px;
  width: 220px;
  height: 103px;
  padding: 7px 13px;
  border-radius: 52px;
  transform: rotate(-3deg);
}

.diabox-home-hero__benefits {
  position: relative;
  z-index: 3;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #d7e6f0;
  background: rgba(255, 255, 255, 0.72);
}

.diabox-home-hero__benefit {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 57px;
  flex-direction: column;
  justify-content: center;
  padding: 8px 15px 8px 42px;
  border-right: 1px solid #d7e6f0;
  color: #17212b;
  line-height: 1.2;
}

.diabox-home-hero__benefit:last-child {
  border-right: 0;
}

.diabox-home-hero__benefit::before {
  position: absolute;
  left: 16px;
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1076b7;
  color: #ffffff;
  content: "\2713";
  font-size: 12px;
  font-weight: 700;
}

.diabox-home-hero__benefit b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diabox-home-hero__benefit small {
  margin-top: 3px;
  color: #6a7b84;
  font-size: 11px;
}

/* =========================
   Nízký komunitní panel
   ========================= */
.diabox-home-community {
  overflow: hidden;
  border: 1px solid #d7e6f0;
  border-radius: 4px;
  background: #f3f9fc;
  box-shadow: 0 4px 16px rgba(0, 74, 122, 0.05);
}

.diabox-home-community__links {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr) minmax(0, 0.85fr);
}

.diabox-home-community__main {
  display: grid;
  grid-template-columns: 138px repeat(3, minmax(0, 1fr));
}

.diabox-home-community__socials {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 13px 16px;
  border-right: 1px solid #d7e6f0;
}

.diabox-home-community__social-logo {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  color: inherit !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.diabox-home-community__social-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.diabox-home-community__social-logo:hover,
.diabox-home-community__social-logo:focus {
  opacity: 0.82;
  outline: none;
  transform: translateY(-2px);
}

.diabox-home-community__benefit {
  display: flex;
  min-width: 0;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-right: 1px solid #d7e6f0;
  color: #17212b !important;
  text-decoration: none !important;
}

.diabox-home-community__benefit:last-child {
  border-right: 0;
}

.diabox-home-community__benefit--link {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.diabox-home-community__benefit--link:hover,
.diabox-home-community__benefit--link:focus {
  background: #ffffff;
  color: #1076b7 !important;
  outline: none;
}

.diabox-home-community__benefit-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1076b7;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.diabox-home-community__benefit-icon--advice {
  border: 2px solid #1076b7;
  background: #ffffff;
  color: #1076b7;
}

.diabox-home-community__social,
.diabox-home-community__advice {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 82px;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border-right: 1px solid #d7e6f0;
  color: #17212b !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.diabox-home-community__advice {
  border-right: 0;
}

.diabox-home-community__social:hover,
.diabox-home-community__social:focus,
.diabox-home-community__advice:hover,
.diabox-home-community__advice:focus {
  background: #ffffff;
  color: #1076b7 !important;
  outline: none;
}

.diabox-home-community__social-icon {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
}

.diabox-home-community__social--facebook .diabox-home-community__social-icon {
  background: #1877f2;
  font-family: Arial, sans-serif;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
  text-transform: lowercase;
}

.diabox-home-community__social--instagram .diabox-home-community__social-icon {
  background: linear-gradient(135deg, #7738c7, #e1306c 56%, #f7a936);
}

.diabox-home-community__social--instagram .diabox-home-community__social-icon::before {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 3px solid #ffffff;
  border-radius: 8px;
  content: "";
}

.diabox-home-community__social--instagram .diabox-home-community__social-icon::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 8px -8px 0 -3px #ffffff;
  content: "";
}

.diabox-home-community__advice-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 2px solid #1076b7;
  border-radius: 50%;
  color: #1076b7;
  font-size: 19px;
  font-weight: 700;
}

.diabox-home-community__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.diabox-home-community__copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diabox-home-community__copy small {
  color: #617681;
  font-size: 12px;
  line-height: 1.25;
}

.diabox-home-community__arrow {
  margin-left: auto;
  color: #6f94a7;
  font-size: 20px;
  line-height: 1;
}

.diabox-home-community__service {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  border-top: 1px solid #d7e6f0;
  background: rgba(255, 255, 255, 0.78);
}

.diabox-home-community__shipping {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #17212b;
  font-size: 12px;
}

.diabox-home-community__shipping strong {
  font-size: 13px;
  font-weight: 700;
}

.diabox-home-community__shipping small {
  color: #617681;
  font-size: 12px;
}

.diabox-home-community__package {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 16px;
  border: 2px solid #1076b7;
  color: #1076b7;
}

.diabox-home-community__package::before {
  position: absolute;
  top: 4px;
  right: -2px;
  left: -2px;
  border-top: 2px solid #1076b7;
  content: "";
}

.diabox-home-community__service .diabox-home-hero__currencies {
  flex: 0 0 auto;
  color: #617681;
  font-size: 12px;
}

.diabox-home-community__advantages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.72);
}

.diabox-home-community__advantage {
  display: flex;
  min-width: 0;
  min-height: 78px;
  align-items: center;
  gap: 13px;
  padding: 13px 20px;
  border-right: 1px solid #d7e6f0;
  color: #17212b !important;
  text-decoration: none !important;
}

.diabox-home-community__advantage:last-child {
  border-right: 0;
}

.diabox-home-community__advantage--link {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.diabox-home-community__advantage--link:hover,
.diabox-home-community__advantage--link:focus {
  background: #ffffff;
  color: #1076b7 !important;
  outline: none;
}

.diabox-home-community__advantage-icon {
  display: inline-flex;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  align-items: center;
  justify-content: center;
  color: #0d85c3;
}

.diabox-home-community__advantage-icon svg {
  display: block;
  width: 32px;
  height: 32px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.diabox-home-community__meta {
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 18px;
  padding: 7px 14px;
  border-top: 1px solid #d7e6f0;
  background: #f5fafc;
}

.diabox-home-community__follow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-right: 18px;
  border-right: 1px solid #d7e6f0;
}

.diabox-home-community__meta .diabox-home-community__social-logo {
  width: 33px;
  height: 33px;
  flex-basis: 33px;
}

.diabox-home-community__delivery {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #536a76;
  font-size: 12px;
}

.diabox-home-community__delivery svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: #1076b7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.diabox-home-community__delivery strong {
  color: #17212b;
  font-weight: 700;
}

.diabox-home-community__meta .diabox-home-hero__currencies {
  margin-left: auto;
  color: #617681;
  font-size: 12px;
}

/* =========================
   Obrazové kategorie
   ========================= */
.diabox-home-categories {
  margin-top: 30px;
}

.diabox-home-categories__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.diabox-home-categories__title {
  margin: 0;
  color: #111820;
  font-family: "Exo 2", sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}

.diabox-home-categories__hint {
  margin: 0;
  color: #71818a;
  font-size: 14px;
}

.diabox-home-categories__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.diabox-home-category {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 162px;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #d7e6f0;
  background: #ffffff;
  color: #17212b !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.diabox-home-category::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf7fc;
  color: #1076b7;
  content: "›";
  font-size: 21px;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.diabox-home-category:hover,
.diabox-home-category:focus {
  border-color: #8fc7e5;
  box-shadow: 0 7px 18px rgba(0, 74, 122, 0.11);
  color: #1076b7 !important;
  outline: none;
  transform: translateY(-2px);
}

.diabox-home-category:hover::after,
.diabox-home-category:focus::after {
  background: #1076b7;
  color: #ffffff;
}

.diabox-home-category__image {
  display: flex;
  height: 108px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 14px 3px;
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.diabox-home-category__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.diabox-home-category:hover .diabox-home-category__image img,
.diabox-home-category:focus .diabox-home-category__image img {
  transform: scale(1.045);
}

.diabox-home-category__name {
  display: block;
  padding: 10px 40px 13px 13px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

/* Výhody jsou nyní součástí horního banneru. */
body.in-index #content > .banners-row {
  display: none !important;
}

/* =========================
   Kompaktní produktové záložky
   ========================= */
body.in-index .diabox-product-tabs {
  width: 100%;
  max-width: 1200px;
  margin: 48px auto 24px;
  color: #17212b;
}

body.in-index .diabox-product-groups {
  width: 100%;
  max-width: 1200px;
  margin: 46px auto 24px;
  color: #17212b;
}

.diabox-product-group {
  position: relative;
  padding: 0 0 18px;
  border-bottom: 1px solid #e2ebf0;
}

.diabox-product-group + .diabox-product-group {
  padding-top: 18px;
}

.diabox-product-group:last-child {
  padding-bottom: 8px;
  border-bottom: 0;
}

.diabox-product-group__header {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.diabox-product-group__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.diabox-product-group__header .diabox-product-carousel__controls {
  position: absolute;
  top: 88px;
  right: -21px;
  left: -21px;
  display: block;
  padding-bottom: 0;
  pointer-events: none;
}

.diabox-product-group__header .diabox-product-carousel__button {
  position: absolute;
  pointer-events: auto;
}

.diabox-product-group__header .diabox-product-carousel__button--previous {
  left: 0;
}

.diabox-product-group__header .diabox-product-carousel__button--next {
  right: 0;
}

.diabox-product-tabs__header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #d7e6f0;
}

.diabox-product-tabs__list {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.diabox-product-tabs__list::-webkit-scrollbar {
  display: none;
}

.diabox-product-tabs__tab {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 0;
  background: transparent;
  color: #586b76;
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.diabox-product-tabs__tab::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  background: transparent;
  content: "";
}

.diabox-product-tabs__tab:hover,
.diabox-product-tabs__tab:focus {
  background: #f4f9fc;
  color: #1076b7;
  outline: none;
}

.diabox-product-tabs__tab[aria-selected="true"] {
  background: #eef7fc;
  color: #1076b7;
}

.diabox-product-tabs__tab[aria-selected="true"]::after {
  background: #1076b7;
}

.diabox-product-tabs__panel[hidden] {
  display: none !important;
}

.diabox-product-carousel__controls {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  padding-bottom: 8px;
}

.diabox-product-carousel__controls[hidden] {
  display: none !important;
}

.diabox-product-carousel__button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #a9d2e8;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 74, 122, 0.07);
  color: #1076b7;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.diabox-product-carousel__button:hover,
.diabox-product-carousel__button:focus {
  border-color: #1076b7;
  background: #1076b7;
  color: #ffffff;
  outline: none;
}

.diabox-product-carousel__button:disabled {
  border-color: #dce8ee;
  background: #f7fafc;
  box-shadow: none;
  color: #9baeb8;
  cursor: default;
  opacity: 0.65;
}

body.in-index .products-block.diabox-product-carousel {
  display: flex !important;
  width: 100%;
  overflow-x: auto;
  align-items: stretch;
  flex-wrap: nowrap !important;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.in-index .products-block.diabox-product-carousel::-webkit-scrollbar {
  display: none;
}

body.in-index .products-block.diabox-product-carousel > .product {
  width: 25% !important;
  max-width: none !important;
  flex: 0 0 25% !important;
  padding: 12px 14px !important;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

body.in-index .diabox-product-carousel .p {
  display: flex;
  height: 100%;
  flex-direction: column;
}

body.in-index .diabox-product-carousel .p > a.image {
  display: flex;
  height: 215px;
  flex: 0 0 215px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}

body.in-index .diabox-product-carousel .p > a.image::before {
  display: none;
}

body.in-index .diabox-product-carousel .p > a.image img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  margin: auto;
  object-fit: contain;
}

body.in-index .diabox-product-carousel .p-in {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

body.in-index .diabox-product-carousel .p-in-in {
  flex: 0 0 auto;
}

body.in-index .diabox-product-carousel .p .name {
  height: 42px;
  margin-bottom: 7px;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
}

body.in-index .diabox-product-carousel .ratings-wrapper {
  min-height: 38px;
  padding-bottom: 7px;
}

body.in-index .diabox-product-carousel .p-bottom {
  flex: 1 1 auto;
}

body.in-index .diabox-product-carousel .p-bottom > div {
  gap: 8px;
}

body.in-index .diabox-product-carousel .p-bottom .p-tools,
body.in-index .diabox-product-carousel .p-bottom .prices {
  flex-basis: calc(50% - 4px);
}

body.in-index .diabox-product-carousel .p-bottom .p-desc {
  display: -webkit-box;
  max-height: 42px;
  margin-top: 12px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.in-index .diabox-product-carousel .p .price span,
body.in-index .diabox-product-carousel .p .price strong {
  font-size: 19px;
}

/* =========================
   Automatický slider článků
   ========================= */
body.in-index .homepage-blog-wrapper.diabox-articles {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 42px 0 30px !important;
  padding: 0 !important;
}

.diabox-articles__header {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
}

body.in-index .diabox-articles__header .homepage-group-title {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #17212b;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

.diabox-articles__controls {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.diabox-articles__controls[hidden] {
  display: none !important;
}

.diabox-articles__button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #a9d2e8;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 74, 122, 0.07);
  color: #1076b7;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.diabox-articles__button:hover,
.diabox-articles__button:focus {
  border-color: #1076b7;
  background: #1076b7;
  color: #ffffff;
  outline: none;
}

.diabox-articles__track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  align-items: stretch;
  gap: 16px;
  padding: 0 0 5px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.diabox-articles__track::-webkit-scrollbar {
  display: none;
}

body.in-index .diabox-articles__track > .news-item {
  display: flex !important;
  float: none !important;
  width: calc((100% - 32px) / 3) !important;
  max-width: none !important;
  min-width: 0;
  flex: 0 0 calc((100% - 32px) / 3) !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-direction: column;
  border: 1px solid #d7e6f0;
  background: #ffffff;
  scroll-snap-align: start;
}

body.in-index .diabox-articles__track > .news-item > a {
  display: flex !important;
  height: 100%;
  flex-direction: column;
  color: #17212b !important;
  text-decoration: none !important;
}

body.in-index .diabox-articles__track .news-item .image {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f7f8;
}

body.in-index .diabox-articles__track .news-item .image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
  transition: transform 0.35s ease;
}

body.in-index .diabox-articles__track .news-item > a:hover .image img,
body.in-index .diabox-articles__track .news-item > a:focus .image img,
body.in-index .diabox-articles__track .news-item:hover .image img {
  transform: scale(1.025);
}

body.in-index .diabox-articles__track .news-item .text {
  display: flex;
  min-height: 132px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 15px 17px 16px !important;
  text-align: left;
}

body.in-index .diabox-articles__track .news-item .title {
  display: -webkit-box;
  min-height: 43px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #1076b7;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.in-index .diabox-articles__track .news-item .description {
  display: -webkit-box;
  max-height: 42px;
  margin: 0;
  overflow: hidden;
  color: #586c77;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.in-index .diabox-articles__track .news-item .description p {
  margin: 0 !important;
}

body.in-index .diabox-articles__track .news-item .read-article {
  display: none !important;
}

@media (max-width: 1360px) {
  .diabox-home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  }

  .diabox-home-hero__content {
    padding-left: 32px;
  }

  .diabox-home-hero__product--sensor {
    right: 6%;
    width: 108px;
    height: 108px;
  }

  .diabox-home-hero__product--belt {
    right: 10%;
    width: 205px;
  }

  .diabox-home-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  body.in-index #diabox-home-top {
    margin-top: 24px;
  }

  .diabox-home-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 245px;
  }

  .diabox-home-hero__content {
    padding: 27px 24px 24px;
  }

  .diabox-home-hero__visual {
    min-height: 218px;
  }

  .diabox-home-hero__product--sensor {
    width: 96px;
    height: 96px;
  }

  .diabox-home-hero__product--belt {
    right: 7%;
    width: 188px;
    height: 92px;
  }

  .diabox-home-hero__benefit {
    padding-right: 10px;
    padding-left: 36px;
  }

  .diabox-home-hero__benefit::before {
    left: 11px;
  }

  body.in-index .products-block.diabox-product-carousel > .product {
    width: 33.3333% !important;
    flex-basis: 33.3333% !important;
  }

  body.in-index .diabox-product-tabs {
    margin-top: 38px;
  }

  body.in-index .diabox-product-groups {
    margin-top: 38px;
  }

  body.in-index .diabox-product-carousel .p > a.image {
    height: 190px;
    flex-basis: 190px;
  }

  body.in-index .diabox-articles__track > .news-item {
    width: calc((100% - 16px) / 2) !important;
    flex-basis: calc((100% - 16px) / 2) !important;
  }
}

@media (max-width: 767px) {
  body.in-index #diabox-home-top {
    margin: 13px 0 22px;
  }

  .diabox-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .diabox-home-hero__content {
    padding: 20px 16px 16px;
  }

  .diabox-home-hero__eyebrow {
    margin-bottom: 7px;
    font-size: 12px;
  }

  .diabox-home-hero__title {
    margin-bottom: 8px;
    font-size: 24px;
    letter-spacing: -0.2px;
    line-height: 1.12;
  }

  .diabox-home-hero__text {
    margin-bottom: 13px;
    font-size: 13px;
    line-height: 1.4;
  }

  .diabox-home-hero__actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: 7px;
    margin-bottom: 13px;
  }

  .diabox-home-hero__button {
    min-width: 0;
    min-height: 39px;
    flex: 1 1 50%;
    padding: 8px 7px;
    font-size: 12px;
    text-align: center;
  }

  .diabox-home-hero__meta {
    gap: 7px 9px;
    font-size: 11px;
  }

  .diabox-home-hero__visual {
    display: none;
  }

  .diabox-home-hero__socials {
    gap: 7px;
    padding-left: 0;
    border-left: 0;
  }

  .diabox-home-hero__benefits {
    display: flex;
    grid-column: 1;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .diabox-home-hero__benefits::-webkit-scrollbar {
    display: none;
  }

  .diabox-home-hero__benefit {
    min-height: 48px;
    flex: 0 0 auto;
    padding: 7px 13px 7px 35px;
    scroll-snap-align: start;
  }

  .diabox-home-hero__benefit::before {
    left: 11px;
    width: 17px;
    height: 17px;
    font-size: 11px;
  }

  .diabox-home-hero__benefit b {
    font-size: 12px;
  }

  .diabox-home-hero__benefit small {
    display: none;
  }

  .diabox-home-community {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .diabox-home-community__advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diabox-home-community__advantage {
    min-height: 66px;
    gap: 8px;
    padding: 9px 11px;
    border-bottom: 1px solid #d7e6f0;
  }

  .diabox-home-community__advantage:nth-child(2n) {
    border-right: 0;
  }

  .diabox-home-community__advantage:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .diabox-home-community__advantage-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .diabox-home-community__advantage-icon svg {
    width: 27px;
    height: 27px;
  }

  .diabox-home-community__advantage .diabox-home-community__copy strong {
    font-size: 12px;
  }

  .diabox-home-community__advantage .diabox-home-community__copy small {
    display: none;
  }

  .diabox-home-community__meta {
    display: grid;
    min-height: 51px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    padding: 7px 10px;
  }

  .diabox-home-community__follow {
    gap: 7px;
    padding-right: 10px;
  }

  .diabox-home-community__meta .diabox-home-community__social-logo {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .diabox-home-community__delivery {
    justify-content: center;
    font-size: 10px;
  }

  .diabox-home-community__delivery svg {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .diabox-home-community__meta .diabox-home-hero__currencies {
    gap: 4px;
    margin-left: 0;
  }

  .diabox-home-community__meta .diabox-home-hero__currencies > span:first-child {
    display: none;
  }

  .diabox-home-community__meta .diabox-home-hero__currency {
    min-width: 34px;
    height: 27px;
  }

  .diabox-home-community__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diabox-home-community__socials {
    min-height: 56px;
    grid-column: 1 / -1;
    gap: 14px;
    padding: 7px 12px;
    border-right: 0;
    border-bottom: 1px solid #d7e6f0;
  }

  .diabox-home-community__social-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .diabox-home-community__benefit {
    min-height: 56px;
    gap: 8px;
    padding: 8px 10px;
  }

  .diabox-home-community__benefit:nth-child(3) {
    border-right: 0;
  }

  .diabox-home-community__benefit--link {
    min-height: 49px;
    grid-column: 1 / -1;
    border-top: 1px solid #d7e6f0;
  }

  .diabox-home-community__benefit-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    font-size: 13px;
  }

  .diabox-home-community__benefit .diabox-home-community__copy small {
    display: none;
  }

  .diabox-home-community__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diabox-home-community__social {
    min-height: 74px;
    gap: 10px;
    padding: 11px 12px;
  }

  .diabox-home-community__social--instagram {
    border-right: 0;
  }

  .diabox-home-community__advice {
    min-height: 49px;
    grid-column: 1 / -1;
    padding: 8px 13px;
    border-top: 1px solid #d7e6f0;
  }

  .diabox-home-community__social-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
  }

  .diabox-home-community__social--facebook .diabox-home-community__social-icon {
    font-size: 31px;
  }

  .diabox-home-community__social--instagram .diabox-home-community__social-icon::before {
    width: 22px;
    height: 22px;
    border-width: 2px;
    border-radius: 7px;
  }

  .diabox-home-community__social--instagram .diabox-home-community__social-icon::after {
    width: 7px;
    height: 7px;
    border-width: 2px;
    box-shadow: 7px -7px 0 -2px #ffffff;
  }

  .diabox-home-community__copy strong {
    font-size: 13px;
  }

  .diabox-home-community__social .diabox-home-community__copy small {
    display: none;
  }

  .diabox-home-community__advice .diabox-home-community__copy small {
    font-size: 11px;
  }

  .diabox-home-community__service {
    display: grid;
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding: 7px 11px;
  }

  .diabox-home-community__shipping {
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 7px;
  }

  .diabox-home-community__shipping small {
    width: 100%;
    padding-left: 25px;
    font-size: 10px;
  }

  .diabox-home-community__service .diabox-home-hero__currencies {
    gap: 4px;
    font-size: 10px;
  }

  .diabox-home-community__service .diabox-home-hero__currencies > span:first-child {
    display: none;
  }

  .diabox-home-community__service .diabox-home-hero__currency {
    min-width: 36px;
    height: 27px;
  }

  .diabox-home-categories {
    margin-top: 25px;
    padding-left: 12px;
  }

  .diabox-home-categories__header {
    display: block;
    padding-right: 12px;
  }

  .diabox-home-categories__title {
    font-size: 23px;
  }

  .diabox-home-categories__hint {
    margin-top: 5px;
  }

  .diabox-home-categories__grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 2px 12px 10px 0;
    scroll-padding-left: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .diabox-home-category {
    min-height: 150px;
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  .diabox-home-category__image {
    height: 98px;
  }

  body.in-index .diabox-product-tabs {
    margin: 30px 0 18px;
  }

  body.in-index .diabox-product-groups {
    margin: 30px 0 18px;
  }

  .diabox-product-group {
    padding-bottom: 12px;
  }

  .diabox-product-group + .diabox-product-group {
    padding-top: 12px;
  }

  .diabox-product-group__header {
    min-height: 0;
    margin: 0;
  }

  .diabox-product-group__header .diabox-product-carousel__controls {
    top: 60px;
    right: 4px;
    left: 4px;
  }

  .diabox-product-tabs__header {
    gap: 8px;
    margin-bottom: 12px;
  }

  .diabox-product-tabs__tab {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 15px;
  }

  .diabox-product-carousel__controls {
    gap: 5px;
    padding-bottom: 7px;
  }

  .diabox-product-carousel__button {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  body.in-index .products-block.diabox-product-carousel > .product {
    width: 50% !important;
    flex-basis: 50% !important;
    padding: 9px !important;
  }

  body.in-index .diabox-product-carousel .p > a.image {
    height: 130px;
    flex-basis: 130px;
  }

  body.in-index .diabox-product-carousel .p .name {
    height: 38px;
    margin-bottom: 4px;
    font-size: 13px;
  }

  body.in-index .diabox-product-carousel .p-bottom .p-desc {
    display: none;
  }

  body.in-index .diabox-product-carousel .ratings-wrapper {
    min-height: 32px;
    padding-bottom: 4px;
    font-size: 12px;
  }

  body.in-index .diabox-product-carousel .p .price span,
  body.in-index .diabox-product-carousel .p .price strong {
    font-size: 17px;
  }

  body.in-index .diabox-product-carousel .p-tools .btn {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 13px;
  }

  body.in-index .homepage-blog-wrapper.diabox-articles {
    margin: 32px 0 23px !important;
    padding-left: 12px !important;
  }

  .diabox-articles__header {
    min-height: 38px;
    margin-bottom: 11px;
    padding-right: 12px;
  }

  body.in-index .diabox-articles__header .homepage-group-title {
    font-size: 22px;
  }

  .diabox-articles__controls {
    gap: 5px;
  }

  .diabox-articles__button {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .diabox-articles__track {
    gap: 10px;
    padding-right: 12px;
    scroll-padding-left: 12px;
  }

  body.in-index .diabox-articles__track > .news-item {
    width: 86% !important;
    flex-basis: 86% !important;
  }

  body.in-index .diabox-articles__track .news-item .text {
    min-height: 118px;
    padding: 13px 14px 14px !important;
  }

  body.in-index .diabox-articles__track .news-item .title {
    min-height: 39px;
    font-size: 15px;
  }

  body.in-index .diabox-articles__track .news-item .description {
    max-height: 39px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .diabox-home-hero__button,
  .diabox-home-category,
  .diabox-home-category::after,
  .diabox-home-category__image img,
  .diabox-product-tabs__tab,
  .diabox-product-carousel__button,
  .diabox-articles__button,
  body.in-index .diabox-articles__track .news-item .image img {
    transition: none;
  }

  body.in-index .products-block.diabox-product-carousel,
  .diabox-articles__track {
    scroll-behavior: auto;
  }
}
